package com.gf.gf_data.service.impl;

import com.gf.gf_data.dao.LoginRecordDao;
import com.gf.gf_data.entity.LoginRecord;
import com.gf.gf_data.service.LoginRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by Eternal_L on 2018/1/11.
 */
@Service
public class LoginRecordServiceImpl implements LoginRecordService {

    @Autowired
    private LoginRecordDao loginRecordDao;


    @Transactional
    @Override
    public boolean recordLoginInfo(LoginRecord loginRecord) {
        return loginRecordDao.insert(loginRecord) == 1;
    }

}
